Next | Prev | Up | Top | Contents | Index

Examples of Multiple Synchronized Schedulers

The example in /usr/react/src/examples/multi demonstrates the creation of three synchronized Frame Schedulers. The three use the cycle counter to establish a minor frame interval of 50 ms. All three Frame Schedulers use 20 minor frames per major frame, for a major frame rate of 1 Hz.

The following processes are scheduled in this example:

The processes are assigned to processors as follows:

In order to simplify the coding of the example, all real-time processes use the same function body, process_skeleton(), which is parameterized with the process name, the address of the Frame Scheduler it is to join, and the address of the "real-time" action it is to execute. In the sample code, all real-time actions are empty function bodies (feel free to load them down with code).

The examples in /usr/react/src/examples/ext_intr, user_intr, and vsync_intr are all similar to multi, differing mainly in the time base used. The examples in complete and stop_resume are similar in operation, but more evolved and complex in the way they manage subprocesses.

Tip: It is helpful to use the xdiff program when comparing these similar programs--see the xdiff(1) reference page.


Next | Prev | Up | Top | Contents | Index